package c.e.a.c.d;

import android.view.View;
import b.i.k.k;
import b.i.k.o;
import b.i.k.x;
import com.google.android.material.appbar.AppBarLayout;
import java.util.Objects;
import java.util.WeakHashMap;

/* compiled from: AppBarLayout */
public class a implements k {
    public final /* synthetic */ AppBarLayout a;

    public a(AppBarLayout appBarLayout) {
        this.a = appBarLayout;
    }

    public x a(View view, x xVar) {
        AppBarLayout appBarLayout = this.a;
        Objects.requireNonNull(appBarLayout);
        WeakHashMap weakHashMap = o.a;
        Object obj = appBarLayout.getFitsSystemWindows() ? xVar : null;
        if (!Objects.equals(appBarLayout.g, obj)) {
            appBarLayout.g = obj;
            appBarLayout.f();
            appBarLayout.requestLayout();
        }
        return xVar;
    }
}
